import Vue from 'vue'
import Router from 'vue-router'
import Recommend from 'components/T-Recommend/Recommend'
import Singer from 'components/G-Singer/Singer'
import Ranking from 'components/P-Ranking/Ranking'
import Search from 'components/S-Search/Search'
import Singerxq from 'components/G-Singerxq/Singerxq'



Vue.use(Router)

export default new Router({
  routes : [
    {
      path: '/',
      name: 'Recommend',
      component: Recommend
    },
    {
      path: '/recommend',
      name: 'Recommend',
      component: Recommend
    },
    {
      path: '/singer',
      name: 'Singer',
      component: Singer,
      children:[
        {
          path:'singerxq',
          name:'Singerxq',
          component:Singerxq
        }
      ]
    },
    {
      path: '/ranking',
      name: 'Ranking',
      component: Ranking
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    }
  ]
})
